package com.adee.java;

public class Test051_double {
    public static void main(String[] args) {
        double d = Double.parseDouble("0");
        System.out.println(d == 0); // true

        // 保留2为小数
        double one = 5.26419;
        String str = String.format("%.2f",one);
        double four = Double.parseDouble(str);
        System.out.println(four);
    }
}
